package itsm.isperp.module.entity.configuration;

import itsm.isperp.framework.domain.IBean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 配置关系实体
 * 
 * @author lizx
 * @date 2014-09-22 10:17
 */
@Entity
@Table(name = "conf_ci_relation_type")
public class ConfCiRelationType implements IBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	//
	@Column
	protected String fromCategoryId;

	//
	@Column
	protected String fromCategoryAliasName;

	@Column
	protected String fromCategoryName;

	//
	@Id
	protected String id;

	//
	@Column
	protected String name;

	//
	@Column
	protected String toCategoryId;

	//
	@Column
	protected String toCategoryName;

	@Column
	protected String toCategoryAliasName;

	//
	@Column
	protected String useProperty;

	protected String[] fromPropertyIds;

	protected String[] toPropertyIds;

	//
	@Column
	protected String usePropertyType;

	@Column
	protected int relationPropertyCount;

	public int getRelationPropertyCount() {
		return relationPropertyCount;
	}

	public void setRelationPropertyCount(int relationPropertyCount) {
		this.relationPropertyCount = relationPropertyCount;
	}

	public String[] getFromPropertyIds() {
		return fromPropertyIds;
	}

	public void setFromPropertyIds(String[] fromPropertyIds) {
		this.fromPropertyIds = fromPropertyIds;
	}

	public String[] getToPropertyIds() {
		return toPropertyIds;
	}

	public void setToPropertyIds(String[] toPropertyIds) {
		this.toPropertyIds = toPropertyIds;
	}

	public String getFromCategoryId() {
		return fromCategoryId;
	}

	public void setFromCategoryId(String fromCategoryId) {
		this.fromCategoryId = fromCategoryId;
	}

	public String getFromCategoryName() {
		return fromCategoryName;
	}

	public void setFromCategoryName(String fromCategoryName) {
		this.fromCategoryName = fromCategoryName;
	}

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getToCategoryId() {
		return toCategoryId;
	}

	public void setToCategoryId(String toCategoryId) {
		this.toCategoryId = toCategoryId;
	}

	public String getToCategoryName() {
		return toCategoryName;
	}

	public void setToCategoryName(String toCategoryName) {
		this.toCategoryName = toCategoryName;
	}

	public String getUseProperty() {
		return useProperty;
	}

	public void setUseProperty(String useProperty) {
		this.useProperty = useProperty;
	}

	public String getUsePropertyType() {
		return usePropertyType;
	}

	public void setUsePropertyType(String usePropertyType) {
		this.usePropertyType = usePropertyType;
	}

	public String getFromCategoryAliasName() {
		return fromCategoryAliasName;
	}

	public void setFromCategoryAliasName(String fromCategoryAliasName) {
		this.fromCategoryAliasName = fromCategoryAliasName;
	}

	public String getToCategoryAliasName() {
		return toCategoryAliasName;
	}

	public void setToCategoryAliasName(String toCategoryAliasName) {
		this.toCategoryAliasName = toCategoryAliasName;
	}

}
